/**
 * if test2
 * date : 2014.10
 * writer : me
 */

function ifTest2() {
	var btnclk = document.getElementById("btn");
	var frm;
	btnclk.onclick = function(){
		frm = document.frm;
		var num1 = Number(frm.num1.value) ;
		var num2 = Number(frm.num2.value) ;
		var total = num1 + num2;
		alert("합계 : " + total + "평균 : " + (total/2));
	}
}